/* 全局样式 */
.root {
    -fx-font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
    -fx-background-color: #f5f6fa;
}

/* 主面板样式 */
.main-pane {
    -fx-background-color: linear-gradient(to bottom right, #4a90e2, #67b26f);
}

/* 标题样式 */
.title-label {
    -fx-text-fill: white;
    -fx-effect: dropshadow(gaussian, rgba(0,0,0,0.3), 10, 0, 0, 2);
}

.subtitle-label {
    -fx-text-fill: white;
    -fx-opacity: 0.9;
}

/* 表单容器样式 */
.form-container {
    -fx-background-color: white;
    -fx-background-radius: 10;
    -fx-effect: dropshadow(gaussian, rgba(0,0,0,0.1), 10, 0, 0, 2);
    -fx-min-width: 400;
}

/* 表单标签样式 */
.form-label {
    -fx-text-fill: #2c3e50;
    -fx-min-width: 80;
}

/* 输入框样式 */
.form-textfield {
    -fx-background-color: #f8f9fa;
    -fx-background-radius: 5;
    -fx-border-color: #e9ecef;
    -fx-border-radius: 5;
    -fx-padding: 5 10;
}

.form-textfield:focused {
    -fx-border-color: #4a90e2;
    -fx-effect: dropshadow(gaussian, rgba(74,144,226,0.2), 5, 0, 0, 0);
}

/* 按钮样式 */
.button-login, .button-register {
    -fx-background-radius: 5;
    -fx-cursor: hand;
    -fx-font-weight: bold;
    -fx-padding: 10 20;
}

.button-login {
    -fx-background-color: #4a90e2;
    -fx-text-fill: white;
}

.button-login:hover {
    -fx-background-color: #357abd;
}

.button-register {
    -fx-background-color: white;
    -fx-text-fill: #4a90e2;
    -fx-border-color: #4a90e2;
    -fx-border-radius: 5;
}

.button-register:hover {
    -fx-background-color: #f8f9fa;
}

/* 菜单栏样式 */
.menu-bar {
    -fx-background-color: white;
    -fx-effect: dropshadow(gaussian, rgba(0,0,0,0.1), 10, 0, 0, 2);
    -fx-padding: 5 10;
}

.menu-bar .menu {
    -fx-background-color: transparent;
}

.menu-bar .menu .label {
    -fx-text-fill: #2c3e50;
    -fx-font-weight: bold;
}

.menu-bar .menu:hover {
    -fx-background-color: #f8f9fa;
}

.menu-bar .menu-item {
    -fx-background-color: white;
}

.menu-bar .menu-item .label {
    -fx-text-fill: #2c3e50;
}

.menu-bar .menu-item:hover {
    -fx-background-color: #f8f9fa;
}

/* 表格样式 */
.table-view {
    -fx-background-color: white;
    -fx-background-radius: 5;
    -fx-border-radius: 5;
}

.table-view .column-header {
    -fx-background-color: #4a90e2;
    -fx-text-fill: white;
}

.table-view .table-row-cell {
    -fx-border-color: #e9ecef;
    -fx-border-width: 0 0 1 0;
}

.table-view .table-row-cell:odd {
    -fx-background-color: #f8f9fa;
}

.table-view .table-row-cell:selected {
    -fx-background-color: #e3f2fd;
}

/* 下拉框样式 */
.combo-box {
    -fx-background-color: white;
    -fx-border-color: #e9ecef;
    -fx-border-radius: 5;
}

.combo-box .list-cell {
    -fx-text-fill: #2c3e50;
}

.combo-box .arrow {
    -fx-background-color: #4a90e2;
}

/* 文本区域样式 */
.text-area {
    -fx-background-color: white;
    -fx-border-color: #e9ecef;
    -fx-border-radius: 5;
}

.text-area .content {
    -fx-background-color: white;
}

/* 提示框样式 */
.dialog-pane {
    -fx-background-color: white;
}

.dialog-pane .header-panel {
    -fx-background-color: #4a90e2;
}

.dialog-pane .header-panel .label {
    -fx-text-fill: white;
}

.dialog-pane .button-bar .button {
    -fx-background-color: #4a90e2;
    -fx-text-fill: white;
    -fx-background-radius: 5;
}

.dialog-pane .button-bar .button:hover {
    -fx-background-color: #357abd;
}

/* Nepg 登录界面样式 */
#NepgLoginView {
    -fx-background-color: linear-gradient(to bottom right, #4a90e2, #67b26f);
}

#NepgLoginView .label {
    -fx-text-fill: white;
}

#NepgLoginView .text-field, #NepgLoginView .password-field {
    -fx-background-color: rgba(255, 255, 255, 0.9);
    -fx-background-radius: 5;
    -fx-border-radius: 5;
    -fx-border-color: transparent;
    -fx-padding: 8 12;
}

#NepgLoginView .text-field:focused, #NepgLoginView .password-field:focused {
    -fx-border-color: #4a90e2;
    -fx-effect: dropshadow(gaussian, rgba(74,144,226,0.2), 5, 0, 0, 0);
}

#NepgLoginView .button {
    -fx-background-color: #4a90e2;
    -fx-text-fill: white;
    -fx-background-radius: 5;
    -fx-cursor: hand;
    -fx-font-weight: bold;
    -fx-padding: 10 20;
}

#NepgLoginView .button:hover {
    -fx-background-color: #357abd;
}

/* Nepg AQI 确认界面样式 */
#NepgAqiConfirmView {
    -fx-background-color: white;
}

#NepgAqiConfirmView .label {
    -fx-text-fill: #2c3e50;
}

#NepgAqiConfirmView .text-field {
    -fx-background-color: #f8f9fa;
    -fx-background-radius: 5;
    -fx-border-color: #e9ecef;
    -fx-border-radius: 5;
    -fx-padding: 5 10;
}

#NepgAqiConfirmView .text-field:focused {
    -fx-border-color: #4a90e2;
    -fx-effect: dropshadow(gaussian, rgba(74,144,226,0.2), 5, 0, 0, 0);
}

#NepgAqiConfirmView .button {
    -fx-background-color: #4a90e2;
    -fx-text-fill: white;
    -fx-background-radius: 5;
    -fx-cursor: hand;
    -fx-font-weight: bold;
    -fx-padding: 8 15;
}

#NepgAqiConfirmView .button:hover {
    -fx-background-color: #357abd;
}

#NepgAqiConfirmView .table-view {
    -fx-background-color: white;
    -fx-background-radius: 5;
    -fx-border-radius: 5;
    -fx-border-color: #e9ecef;
}

#NepgAqiConfirmView .table-view .column-header {
    -fx-background-color: #4a90e2;
    -fx-text-fill: white;
    -fx-font-weight: bold;
}

#NepgAqiConfirmView .table-view .table-row-cell {
    -fx-border-color: #e9ecef;
    -fx-border-width: 0 0 1 0;
}

#NepgAqiConfirmView .table-view .table-row-cell:odd {
    -fx-background-color: #f8f9fa;
}

#NepgAqiConfirmView .table-view .table-row-cell:selected {
    -fx-background-color: #e3f2fd;
}

/* 等级标签样式 */
.label[text="无"] {
    -fx-text-fill: #6c757d;
}

.label[textFill="WHITE"] {
    -fx-background-color: #4a90e2;
    -fx-background-radius: 3;
    -fx-padding: 2 8;
}

/* 实测数据面板样式 */
#txt_pane {
    -fx-background-color: white;
    -fx-background-radius: 10;
    -fx-border-color: #e9ecef;
    -fx-border-radius: 10;
    -fx-padding: 15;
    -fx-effect: dropshadow(gaussian, rgba(0,0,0,0.1), 10, 0, 0, 2);
}

/* 指派操作区域样式 */
.assign-container {
    -fx-spacing: 10;
    -fx-alignment: center;
}

.assign-combo-box {
    -fx-pref-width: 150;
    -fx-background-color: white;
    -fx-border-color: #e9ecef;
    -fx-border-radius: 5;
    -fx-min-width: 150;
}

.assign-combo-box:hover {
    -fx-border-color: #4a90e2;
}

.assign-combo-box .list-cell {
    -fx-text-fill: #2c3e50;
    -fx-padding: 5 10;
}

.assign-button {
    -fx-background-color: #4CAF50;
    -fx-text-fill: white;
    -fx-font-size: 13px;
    -fx-font-weight: bold;
    -fx-padding: 5 15;
    -fx-background-radius: 5;
    -fx-border-radius: 5;
    -fx-cursor: hand;
    -fx-effect: dropshadow(gaussian, rgba(0,0,0,0.1), 3, 0, 0, 1);
}

.assign-button:hover {
    -fx-background-color: #45a049;
    -fx-effect: dropshadow(gaussian, rgba(0,0,0,0.2), 5, 0, 0, 2);
}

.assign-button:pressed {
    -fx-background-color: #3d8b40;
    -fx-effect: dropshadow(gaussian, rgba(0,0,0,0.1), 2, 0, 0, 0);
} 